package com.test.xmlbean;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;


@XmlAccessorType(XmlAccessType.FIELD)  

public class Flight {

	@XmlElement(name = "token")
	private String token;

	@XmlElement(name = "carrier")
	private CommonBean carrier;

	@XmlElement(name = "eticket")
	private String eticket;

	@XmlElement(name = "latinRegistration")
	private String latinRegistration;

	@XmlElement(name = "timeLimit")
	private String timeLimit;

	@XmlElement(name = "gds")
	private String gds;

	@XmlElementWrapper(name = "segments")
	@XmlElement(name = "segment")
	private List<Segment> segments;

	@XmlElementWrapper(name = "price")
	@XmlElement(name = "price")
	private List<Price> price;

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public CommonBean getCarrier() {
		return carrier;
	}

	public void setCarrier(CommonBean carrier) {
		this.carrier = carrier;
	}

	public String getEticket() {
		return eticket;
	}

	public void setEticket(String eticket) {
		this.eticket = eticket;
	}

	public String getLatinRegistration() {
		return latinRegistration;
	}

	public void setLatinRegistration(String latinRegistration) {
		this.latinRegistration = latinRegistration;
	}

	public String getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}

	public String getGds() {
		return gds;
	}

	public void setGds(String gds) {
		this.gds = gds;
	}

	public List<Segment> getSegments() {
		return segments;
	}

	public void setSegments(List<Segment> segments) {
		this.segments = segments;
	}

	public List<Price> getPrice() {
		return price;
	}

	public void setPrice(List<Price> price) {
		this.price = price;
	}

	

}
